<template>
  <div class="app">
    <VirtualList :listData="data" />
  </div>
</template>

<script lang="ts" setup>
import { ref } from "vue";
import VirtualList from "@/components/virtualList/index.vue";

// 数据源
const data = ref(new Array(100000).fill(0).map((item, index) => index + 1));
</script>

<style lang="css" scoped>
.app {
  width: 300px;
  height: 400px;
  border: 1px solid #000;
}
</style>
